package com.puruo.mindhall.bean;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.List;

/**
 * <pre>
 * <b>BaseEntity</b>
 * <b>Description:分页实体类 </b>
 * <b>@author:wangyong</b>
 * <b>Date:</b> 2021/9/16 16:29
 * <b>Copyright:</b> Copyright 2017-2019 wangyong Technology Co., Ltd. All rights reserved.
 * <b>Changelog:</b>
 *   Ver          Date                    Author                  Detail
 *   ----------------------------------------------------------------------
 *   1.0   2021/9/16 16:29    wangyong     new file.
 * </pre>
 */
public class BaseEntity {

    /**
     * 大厅id集合
     */
    private String[] hallIds;

    /**
     * 部门ID集合
     */
    private String[] deptIds;
    /**
     * 开始时间
     */
    private String startDateTime;

    /**
     * 结束时间
     */
    private String endDateTime;

    /**
     * 普通搜索条件
     */
    private String search;

    /**
     * excel 导出
     */
    @JsonIgnore
    private Integer num;

    /**
     * 前端传入分页码
     */
    private Integer page;

    /**
     * 前端传入条数
     */
    private Integer limit;

    /**
     * 倒序字段
     */
    private String desc;

    /**
     * 正序字段
     */
    private String asc;

    @JsonIgnore
    private Integer currentPage;

    /**
     * 用于处理monDate时间格式
     */
    private String monDate1;

    /**
     * 用于处理所有的时间
     */
    private List<String> dates;

    @JsonIgnore
    public List<String> getDates() {
        return dates;
    }

    @JsonProperty
    public void setDates(List<String> dates) {
        this.dates = dates;
    }

    @JsonIgnore
    public String getMonDate1() {
        return monDate1;
    }

    @JsonProperty
    public void setMonDate1(String monDate1) {
        this.monDate1 = monDate1;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    @JsonIgnore
    public String getDesc() {
        return desc;
    }

    @JsonProperty
    public void setDesc(String desc) {
        this.desc = desc;
    }

    @JsonIgnore
    public String getAsc() {
        return asc;
    }

    @JsonProperty
    public void setAsc(String asc) {
        this.asc = asc;
    }

    @JsonIgnore
    public Integer getPage() {
        return page;
    }

    @JsonProperty
    public void setPage(Integer page) {
        this.page = page;
    }

    @JsonIgnore
    public Integer getLimit() {
        return limit;
    }

    @JsonProperty
    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getCurrentPage() {
        return currentPage;
    }

    public void setCurrentPage(Integer currentPage) {
        this.currentPage = currentPage;
    }

    @JsonIgnore
    public String[] getHallIds() {
        return hallIds;
    }

    @JsonProperty
    public void setHallIds(String[] hallIds) {
        this.hallIds = hallIds;
    }

    @JsonIgnore
    public String getStartDateTime() {
        return startDateTime;
    }

    @JsonProperty
    public void setStartDateTime(String startDateTime) {
        this.startDateTime = startDateTime;
    }

    @JsonIgnore
    public String getEndDateTime() {
        return endDateTime;
    }

    @JsonProperty
    public void setEndDateTime(String endDateTime) {
        this.endDateTime = endDateTime;
    }

    @JsonIgnore
    public String getSearch() {
        return search;
    }

    @JsonProperty
    public void setSearch(String search) {
        this.search = search;
    }

    @JsonIgnore
    public String[] getDeptIds() {
        return deptIds;
    }

    @JsonProperty
    public void setDeptIds(String[] deptIds) {
        this.deptIds = deptIds;
    }
}
